import request from '@/config/axios'

// 行政区域 VO
export interface RegionVO {
  code: string // 编码
  name: string // 地区名字
  children: RegionVO[] // 子节点
}

// 获得地区树
export const getRegionTree = async () => {
  return await request.get({ url: '/system/region/tree' })
}

// 获得地区树
export const getRegionList = async () => {
  return await request.get({ url: '/system/region/list' })
}

// 获得城市列表
export const getCityList = async () => {
  return await request.get({ url: '/system/region/city-list' })
}
